<template>
	<view class="listDetail">
		<view class="listDetail-plate-1">
			<view class="title">
				<view class="bian">
					
				</view>
				<text>{{detailData.service_title}}</text>
			</view>
			<view class="content">
				<u-parse :html="detailData.service_answer"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				detailData:''
			};
		},
		onLoad(option) {
			this.id = option.id
			this.getPageData()
		},
		methods:{
			// 请求页面数据
			getPageData(){
				uni.request({
				    url:this.$Url +'/index.php/App/Service/selfServiceMes',
				    method:'POST',
				    data:{
				       self_service_id:this.id
				    },
				    header:{
				        "token":uni.getStorageSync('token')
				    },
				    success: (res) => {
				       if (res.data.status == 200) {
							this.detailData = res.data.data
				       } else{
							uni.showToast({
								title:res.data.msg,
								icon:'none',
								duration:1200
							})
				       }
				    }
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.listDetail{
	width: 100vw;
	min-height: 100vh;
	.listDetail-plate-1{
		background-color: #fff;
		margin-top: 20upx;
		.title{
			width: 100%;
			margin-left: 30upx;
			height: 80upx;
			display: flex;
			align-items: center;
			border-bottom: 1upx solid #e7e7e7;
			.bian{
				width: 6upx;
				height: 44upx;
				margin-right: 15upx;
				background-color: $zhuti-color;
			}
			text{
				font-size: 27upx;
				color: #333;
			}
		}
		.content{
			padding: 0 30upx;
		}
	}
}
</style>
